package fx.com.controller;


import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.MenuBar;
import javafx.scene.layout.AnchorPane;

import java.net.URL;
import java.util.ResourceBundle;

/**
 * @author:yanjizhw@163.com
 * @date:2019/1/18 9:19
 * 描述:
 * @since:1.0.0
 */
public class MainController implements Initializable {

    @FXML
    private MenuBar menuBar;

    @FXML
    private AnchorPane anchpane;


    //menuBar的宽度绑定anchpane的宽度
    @Override
    public void initialize(URL location, ResourceBundle resources) {
//        menuBar.prefWidthProperty().bind(anchpane.widthProperty());
    }
}
